package verify

var VerifyDemoTpl = `
package verify

import (
    "github.com/go-playground/validator/v10"
)

type User struct {
    Name string "validate:"required""
    Age  int    "validate:"required""
}

func ValidateUser(u *User) string {
    err := Verify.Struct(u)
    if err != nil {
        for _, errs := range err.(validator.ValidationErrors) {
            return errs.Translate(Tans)
        }
    }
    return ""
}
`
